#include<stdio.h>
int main(){
    int ret=0;
	int Bubble[10]={45,1,5,9,8,6,5,4,12,74};
	for(int j=0;j<9;j++){
	for(int i=0;i<10;i++){
		if(Bubble[i]>Bubble[i+1]){
			ret=Bubble[i+1];
         Bubble[i+1]=Bubble[i]; 
		 Bubble[i]=ret;
		}
        printf("%d ",Bubble[i]);
	}
        printf("\n");
	}
return 0;
}